<?php /* Smarty version Smarty-3.0.9, created on 2013-05-20 17:24:16
         compiled from "D:/wamp/www/glight/templates\info_paciente.tpl" */ ?>
<?php /*%%SmartyHeaderCode:25253519a5c4070ab32-86456636%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '92a0cdc484d369766035db157bf89fcb09c983d8' => 
    array (
      0 => 'D:/wamp/www/glight/templates\\info_paciente.tpl',
      1 => 1369070652,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '25253519a5c4070ab32-86456636',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="square">
<table border="0" width="100%" cellpadding="0" cellspacing="10">
<tr><td><b>Paciente: <?php echo $_smarty_tpl->getVariable('paciente')->value->get('nombre');?>
 - ID: <?php echo $_smarty_tpl->getVariable('paciente')->value->get('id');?>
 - Fecha Nacimiento: <?php echo $_smarty_tpl->getVariable('paciente')->value->get('fecha_nacimiento');?>
- Sexo: <?php echo $_smarty_tpl->getVariable('paciente')->value->get('sexo');?>
</b></td></tr>

<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('paciente')->value->components["historia"]["p_h"]) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
<tr><td><b>ID:</b> <?php echo $_smarty_tpl->getVariable('paciente')->value->components["historia"]["p_h"][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
<br />
<b>Fecha Creacion:</b> <?php echo $_smarty_tpl->getVariable('paciente')->value->components["historia"]["p_h"][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('fecha_creacion');?>
<br />
<b>Tipo Enfermdedad:</b> <?php echo $_smarty_tpl->getVariable('paciente')->value->components["historia"]["p_h"][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('tipo_enfermedad');?>
<br />
<b>Detalle:</b> <?php echo $_smarty_tpl->getVariable('paciente')->value->components["historia"]["p_h"][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('detalle');?>
<br />

    
<?php endfor; endif; ?>


</td>
<?php if (empty($_smarty_tpl->getVariable('paciente',null,true,false)->value->components["historia"]["p_h"])){?>

No existen historias asociadas a este paciente
<?php }?>
</tr>
</table>
</div>